package teleradiologia.repository;

import java.util.List;

import teleradiologia.domain.Ordering;

public interface OrderingDao {
	// simple CRUD operations
	long create(Ordering ordering);	 // create
	Ordering getById(long id);		 // read
	void update(Ordering ordering);	 // update
	void delete(Ordering ordering);	 // delete
	public List<Ordering> getAll();
	public List<Ordering> getAllByTechnician(String nip);
	public List<Ordering> getAllByDiagnosticlab(String krs);
	public List<Ordering> getAllByPatient(long idpatient);
	public List<Ordering> getAllByTechnicianToArchive(String nip);
	List<Ordering> getAllByDiagnosticlabToArchive(String krs);
}
